package com.eastfair.tag.dto;

import com.eastfair.core.base.entity.SuperEntity;
import com.eastfair.tag.enumeration.TagResourceTypeEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;

/**
 * <p>
 * 实体类
 *
 * </p>
 *
 * @author zjn
 * @since 2022-03-11
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = false)
@Builder
@ApiModel(value = "TagResourceUpdateDTO", description = "")
public class TagResourceUpdateDTO implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @NotNull(message = "请填写主键", groups = SuperEntity.Update.class)
    private Long id;

    /**
     * 项目id
     */
    @ApiModelProperty(value = "项目id")
    @NotNull(message = "请填写项目id")
    private Long projectId;
    /**
     * 资源类型
     */
    @ApiModelProperty(value = "资源类型")
    @Size(max = 255, message = "资源类型长度不能超过255")
    private TagResourceTypeEnum resourceType;
    /**
     * 资源id
     */
    @ApiModelProperty(value = "资源id")
    private Long resourceId;
    /**
     * 标签id
     */
    @ApiModelProperty(value = "标签id")
    private Long tagId;
    /**
     * 是否启用：1是；0否
     */
    @ApiModelProperty(value = "是否启用：1是；0否")
    private Integer isEnabled;
    /**
     * 是否删除：1是；0否
     */
    @ApiModelProperty(value = "是否删除：1是；0否")
    private Integer isDeleted;
}
